package com.reder.practice.common.event;

import com.reder.practice.bean.Manager;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.util.Date;

/**
 * 管理员登录事件
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/24 09:49:05</p>
 */
@Getter
@Setter
@ToString
public class ManagerLoginEvent extends ApplicationEvent {

    // 登录时间
    private Date loginTime = new Date();

    // 登录的管理员
    private Manager manager = null;

    public ManagerLoginEvent(Manager manager) {
        super(manager);
        this.manager = manager;
    }
}
